/*
 * MIT License
 *
 * Copyright (c) 2023 北京凯特伟业科技有限公司
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.je.message.service.wechat;

import com.je.message.ResultMsgResp;
import com.je.message.exception.MessageSendException;
import com.je.message.vo.MessageVo;

public interface WeChatMsgService {

    /**
     * 发送消息
     *
     * @param msgVo 消息
     */
    ResultMsgResp send(MessageVo msgVo) ;

    /**
     * 发送文字消息
     *
     * @param userIds 用户ID集合 多个按逗号隔开，如果是全部人员请传@all
     * @param context 文字内容
     */
    ResultMsgResp sendWz(String userIds, String context) throws  MessageSendException;

    /**
     * 发送图文消息
     *
     * @param userIds     用户ID集合 多个按逗号隔开，如果是全部人员请传@all
     * @param twType      图文内容类型    UEditor 编辑器内容 || HTML || URL 链接
     * @param context     图文内容
     * @param picPath     图片地址
     * @param author      作者
     * @param description 摘要
     */
    ResultMsgResp sendTw(String userIds, String twType, String title, String context, String picPath, String author, String description, String sourceUrl) throws  MessageSendException;

    /**
     * 发送图片消息
     *
     * @param userIds  用户ID集合 多个按逗号隔开，如果是全部人员请传@all
     * @param filePath 图片文件地址
     */
    ResultMsgResp sendTp(String userIds, String filePath) throws  MessageSendException;

    /**
     * 发送语音消息
     *
     * @param userIds  用户ID集合 多个按逗号隔开，如果是全部人员请传@all
     * @param filePath 语音文件地址
     */
    ResultMsgResp sendYy(String userIds, String filePath) throws  MessageSendException;

    /**
     * 发送视频消息
     *
     * @param userIds     用户ID集合 多个按逗号隔开，如果是全部人员请传@all
     * @param filePath    视频文件地址
     * @param title       标题
     * @param description 摘要
     */
    ResultMsgResp sendSp(String userIds, String filePath, String title, String description) throws  MessageSendException;

    /**
     * 发送文件消息
     *
     * @param userIds  用户ID集合 多个按逗号隔开，如果是全部人员请传@all
     * @param filePath 文件地址
     */
    ResultMsgResp sendWj(String userIds, String filePath) throws  MessageSendException;

}
